﻿@model IEnumerable<Pyramid.Models.WebObject>

<div class="pageContent">
	<table class="table" width="100%" layouth="22">
		<thead>
			<tr>
				<th>@Html.DisplayNameFor(m => m.Id)</th>
				<th>@Html.DisplayNameFor(m => m.Name)</th>
				<th>@Html.DisplayNameFor(m => m.ParentId)</th>
				<th>@Html.DisplayNameFor(m => m.Href)</th>
				<th>@Html.DisplayNameFor(m => m.Target)</th>
				<th>@Html.DisplayNameFor(m => m.OrderWeight)</th>
			</tr>
		</thead>
		<tbody>
			@foreach (var s in Model.OrderBy(x => x.OrderWeight))
			{
				<tr>
					<td>@s.Id</td>
					<td>@s.Name</td>
					<td>@s.ParentId</td>
					<td>@s.Href</td>
					<td>@s.Target</td>
					<td>@s.OrderWeight</td>
				</tr>
			}
		</tbody>
	</table>
</div>